package edu.gtcfla.km.appmodules.vo;

import java.io.Serializable;
import java.util.Date;

import org.vsg.biz.BusinessEntityFactory;
import org.vsg.common.web.jackson.JsonDateSerializer;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import edu.gtcfla.km.Knowledge;

public class KnowledgeListViewVO implements Serializable {
	
	private Knowledge entity;

	private static BusinessEntityFactory entityFactory = BusinessEntityFactory.getInstance();
	
	
	
	public KnowledgeListViewVO(Knowledge entity) {
		this.entity = entity;
	}

	
	
	public KnowledgeListViewVO() {
		entity = entityFactory.create( Knowledge.class );
	}



	public String getId() {
		return entity.getId();
	}



	public void setId(String id) {
		entity.setId(id);
	}



	public String getTitle() {
		return entity.getTitle();
	}



	public String getContent() {
		return entity.getContent();
	}



	public void setTitle(String title) {
		entity.setTitle(title);
	}



	public void setContent(String content) {
		entity.setContent(content);
	}



	public short getShared() {
		return entity.getShared();
	}



	public String getKeywords() {
		return entity.getKeywords();
	}



	public void setShared(short shared) {
		entity.setShared(shared);
	}



	public void setKeywords(String keyword) {
		entity.setKeywords(keyword);
	}



	public String getReleasedUserId() {
		return entity.getReleasedUserId();
	}



	public void setReleasedUserId(String userId) {
		entity.setReleasedUserId(userId);
	}


	@JsonSerialize(using=JsonDateSerializer.class)	
	public Date getReleasedDate() {
		return entity.getReleasedDate();
	}



	public void setReleasedDate(Date inputDate) {
		entity.setReleasedDate(inputDate);
	}
	

	
	
}